import api from './api';

// 获取角色列表
export const getRoles = async () => {
  try {
    const response = await api.get('/roles');
    return response;
  } catch (error) {
    throw error;
  }
};
